<%--
  Created by IntelliJ IDEA.
  User: swg
  Date: 2017/10/10
  Time: 11:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/includes.jsp" %>
<html>
<head>
    <meta charset="gb2312">
    <title>蜗牛之家-文章详情</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/front/css/bootstrap.min.css">
    <link href="${pageContext.request.contextPath}/static/front/css/base.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/front/css/new.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/front/js/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/front/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap-paginator.min.js"></script>
    <![endif]-->
</head>
<body>
<!-- 头 -->
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="${pageContext.request.contextPath}/front/welcome">蜗牛生活</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li><a href="${pageContext.request.contextPath}/front/index">首页</a></li>
                <li><a href="${pageContext.request.contextPath}/front/about">关于我们</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">文章分类
                        <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <c:forEach items="${columns}" var="column">
                            <li><a href="${pageContext.request.contextPath}/front/showAllArticlesByColumnId/${column.id}">${column.columnName}</a></li>
                        </c:forEach>
                    </ul>
                </li>
                <li><a href="${pageContext.request.contextPath}/userManager/login">后台管理系统</a></li>
            </ul>
            <form class="navbar-form navbar-right">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="关键字" id="textInput">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
            </form>
        </div>
    </div>
</nav>
<article class="blogs" style="padding-top: 40px;">
    <h1 class="t_nav"><a href="${pageContext.request.contextPath}/front/index" class="n1">蜗牛之家首页</a><a href="${pageContext.request.contextPath}/front/showAllArticlesByColumnId/${article.columnId}" class="n2">${article.columnName}</a></h1>
    <div class="">
        <h2 class="c_titile"><strong>${article.articleTitle}</strong></h2>
        <p class="box_c"><span class="d_time">发布时间：<fmt:formatDate value="${article.createDate}" pattern="yyyy-MM-dd"/></span><span>作者：${article.userName}</span></p>
        <ul class="infos" style="border: solid;background-color: #F8F8F8;border-color:#F8F8F8;box-shadow: 0px 0px 30px lightgray;">
            ${article.content}
        </ul>
        <div class="keybq">
            <p><span>关键字词</span>：爱情,犯错,原谅,分手</p>

        </div>
        <div class="ad"> </div>
        <div class="nextinfo">
            <c:if test="${laterArticle ne null}">
                <p>上一篇：<a href="${pageContext.request.contextPath}/front/detail/${laterArticle.id}">${laterArticle.articleTitle}</a></p>
            </c:if>
            <c:if test="${preArticle ne null}">
                <p>下一篇：<a href="${pageContext.request.contextPath}/front/detail/${preArticle.id}">${preArticle.articleTitle}</a></p>
            </c:if>
        </div>
    </div>
</article>
<%--<div id="footer" class="container">
    <nav class="navbar navbar-default navbar-fixed-bottom">
        <div class="navbar-inner navbar-content-center">
            <p class="text-muted credit" style="padding: 10px;text-align: center">
                蜗牛之家 2017
            </p>
        </div>
    </nav>
</div>--%>
</body>
</html>
